Speed up display of RTL text with many character compositions
authorEli Zaretskii <eliz@gnu.org>
Thu, 21 Mar 2024 08:25:56 +0000 (10:25 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 21 Mar 2024 08:25:56 +0000 (10:25 +0200)
commitfe24a8c3c091c1e051fe6a8c1ec4fd30ca052ca7
treec2727e972ada7df41e35e7520694508f7521957a
parentb3f04eb68499f285e05b5b74e9cbd67f3140fb3c
Speed up display of RTL text with many character compositions

* src/bidi.c (bidi_level_start): New function.
* src/dispextern.h (bidi_level_start): Add prototype.
* src/xdisp.c (compute_stop_pos, set_iterator_to_next)
(get_visually_first_element, next_element_from_buffer): Call
'bidi_level_start' when looking for composed characters backwards,
to set limit of searching back, instead of looking all the way to
BOB.  (Bug#69385)
src/bidi.c
src/dispextern.h
src/xdisp.c